var webpack = require('webpack');
module.exports = {
    entry: __dirname+"/main.js",
    output: {
        path: __dirname+'/',
        filename: 'build.js'
    },
    module: {
        rules: [
            {
                test:/\.css$/,
                loader:'style-loader!css-loader'
            },
            {
                test: /\.(png|jpg)$/,
                loader: 'file-loader!url-loader?limit=8192'
            }
        ]
    },
    plugins: [
        new webpack.optimize.UglifyJsPlugin({
            compress: {
                warnings: false
            }
        })
    ]
}